﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ARS.Control.Custom.Entity.Fields;

namespace ARS.Control.Custom.Entity.Model
{
    /// <summary>
    /// ARS_Control_DbSelectHtmlSelect_Attr:实体类(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public partial class ARS_Control_DbSelectHtmlSelect_Attr
    {
        public ARS_Control_DbSelectHtmlSelect_Attr()
        { }
        #region Model
        private int _ars_control_dbselecthtmlselect_attr_id;
        private string _datavaluefield;
        private string _datatextfield;
        private string _firsttext;
        private string _firstvalue;
        private int? _ars_control_dbselectall_attr_id;
        /// <summary>
        /// 
        /// </summary>
        [KeyField()]
        public int ARS_Control_DbSelectHtmlSelect_Attr_Id
        {
            set { _ars_control_dbselecthtmlselect_attr_id = value; }
            get { return _ars_control_dbselecthtmlselect_attr_id; }
        }
        /// <summary>
        /// 
        /// </summary>
       [CharField(Verbose_Name = "值字段", IsAllowBlank = false)]
        public string DataValueField
        {
            set { _datavaluefield = value; }
            get { return _datavaluefield; }
        }
        /// <summary>
        /// 
        /// </summary>
        [CharField(Verbose_Name = "显示字段", IsAllowBlank = false)]
        public string DataTextField
        {
            set { _datatextfield = value; }
            get { return _datatextfield; }
        }
        /// <summary>
        /// 
        /// </summary>
        [CharField(Verbose_Name = "第一列名称")]
        public string FirstText
        {
            set { _firsttext = value; }
            get { return _firsttext; }
        }
        /// <summary>
        /// 
        /// </summary>
        [CharField(Verbose_Name = "第一列值")]
        public string FirstValue
        {
            set { _firstvalue = value; }
            get { return _firstvalue; }
        }
        /// <summary>
        /// 
        /// </summary>
        [ForeignKeyConfig(TableName = "ARS_Control_DbSelectAll_Attr", DataTextField = "TableName", KeyField = "ARS_Control_DbSelectAll_Attr_Id", DataValueField = "ARS_Control_DbSelectAll_Attr_Id")]
        [ForeignKeyField(Verbose_Name="表")]
        public int? ARS_Control_DbSelectAll_Attr_Id
        {
            set { _ars_control_dbselectall_attr_id = value; }
            get { return _ars_control_dbselectall_attr_id; }
        }
        #endregion Model

    }
}
